package model.playingfield;

import java.awt.Color;

import model.Player;

/*
 * This is a BranchingSpot. It differs from an ordinary spot only in the sense that it has an 
 * additional Spot reference (meant to refer to the first spot on the runway for the 
 * player it is associated with).
 */

public class BranchingSpot extends Spot {
	
	private static final long serialVersionUID = 1L;
	
	private Spot nextRunwaySpot;

	public BranchingSpot(Color color, int index) {
		super(color, index);
	}
	
	public BranchingSpot(Player player, int index) {
		super(player, index);
	}
	
	public void setNextRunway(Spot nextRunway) {
		this.nextRunwaySpot = nextRunway;
	}
	
	public Spot getNextRunway() {
		return this.nextRunwaySpot;
	}
}
